home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / Asap / ASAP / DrawInfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-08  |  1.3 KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ADrawInfo wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_ADrawInfo_H
  12. #define ASAP_ADrawInfo_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Intuition.h>
  17. }
  18.  
  19. class ADrawInfo : public DrawInfo
  20. {
  21.  public:
  22.  inline void FreeScreenDrawInfo(Screen * screen);
  23.  inline static ADrawInfo * GetScreenDrawInfo(Screen * screen);
  24. };
  25. //----------------------------------------------------------------------------
  26. void ADrawInfo::FreeScreenDrawInfo (Screen * screen)
  27. {
  28.  ::FreeScreenDrawInfo(screen, this);
  29. }
  30. //----------------------------------------------------------------------------
  31. ADrawInfo * ADrawInfo::GetScreenDrawInfo (Screen * screen)
  32. {
  33.  return (ADrawInfo *) ::GetScreenDrawInfo(screen);
  34. }
  35.  
  36. #endif
  37.